<p class="Paragraph">Aligns a string to the left of a string variable, or copies a variable of a user-defined type to another variable of a different user-defined type.</p>
<p class="Paragraph">LSet Var As String = Text or LSet Var1 = Var2 <help:key-word value="LSet" tag="kw66409_1" xmlns:help="http://openoffice.org/2000/help"/></p>
<p class="Paragraph">Var: Any String variable, in which the string to be aligned to the left.</p>
<p class="Paragraph">Text: String to be aligned to the left of the string variable.</p>
<p class="Paragraph">Var1: Name of the user-defined type variable being copied to.</p>
<p class="Paragraph">Var2: Name of the user-defined type variable being copied from.</p>
<p class="Paragraph">If the string is shorter than the string variable, <span class="T1">LSet</span> left-aligns the string within the string variable. Any remaining positions in the string variable are replaced by spaces. If the string is longer than the string variable, only the leftmost characters up to the length of the string variable are copied. With the <span class="T1">LSet</span> statement, you can also copy a user-defined type variable to another variable of the same type.</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleRLSet</p>
<p class="PropText"><text:tab-stop xmlns:text="http://openoffice.org/2000/text"/>Dim sVar As String</p>
<p class="PropText"><text:tab-stop xmlns:text="http://openoffice.org/2000/text"/>Dim sExpr As String</p>